import 'package:flutter/foundation.dart';

class Constant {
  /// App运行在Release环境时，inProduction为true；当App运行在Debug和Profile环境时，inProduction为false
  static const bool inProduction = kReleaseMode;

  static const String code = 'code';
  static const String data = 'data';
  static const String message = 'message';
  static const String redirect = 'redirect';

  /// 广告banner的高度
  static const double adBannerHeight = 50;

  /// 免费版
  static const isFree = false;

  /// 一些参数

  /// 渠道id
  static const String chnId = '265148397'; // 淘淘视频

  /// 设备来源,1:web,2:android,3:ios
  static const String from = '3';

  /// 推广号
  static const String ver = 'ttspiosapp002'; // 淘淘视频

  /// appstore app id
  static const String appstoreId = '6502542523';

  /// url scheme
  static const String urlScheme = 'ttsp://';

  /// 用户协议地址
  static const String yhxyUrl =
      'https://ts.49wan.com/xyzc/userxy_ttsp_ios.html';

  /// 隐私政策地址
  static const String yszcUrl = 'https://ts.49wan.com/xyzc/xyzc_ttsp_ios.html';

  /// vip用户协议地址
  static const String vipYhxyUrl =
      'https://ts.49wan.com/xyzc/member_ttsp_ios.html';

  /// 自动续费规则地址
  static const String autoRenewPolicyUrl =
      'https://ts.49wan.com/xyzc/renew_ttsp_ios.html';

  /// 友盟androidappkey
  static const String umandAppKey = '663f0714cac2a664de3132a3';

  /// 友盟iosappkey
  static const String umiosAppKey = '663f0714cac2a664de3132a3';

  /// 苹果最终用户协议
  static const String appleEULAUrl =
      'https://www.apple.com/legal/internet-services/itunes/dev/stdeula/';
}
